<template>
	<view class="col-center-horizotal">
		<view class="bg">
			<u-form labelPosition="left" :model="userInfo" :rules="rules" ref="uForm">
				<u-form-item label="姓名" prop="name"  ref="item1" labelWidth="80">
					<u-input v-model="userInfo.name" border="none" class="input-bg" style="padding-left: 20rpx;"></u-input>
				</u-form-item>
				<u-form-item label="手机" prop="name"  ref="item1" labelWidth="80">
					<u-input v-model="userInfo.name" border="none" class="input-bg" style="padding-left: 20rpx;"></u-input>
				</u-form-item>
				<u-form-item label="年龄" prop="name"  ref="item1" labelWidth="80">
					<u-input v-model="userInfo.name" border="none" class="input-bg" style="padding-left: 20rpx;"></u-input>
				</u-form-item>
				<u-form-item label="性别" prop="name"  ref="item1" labelWidth="80"> 
					<view class="row-between-center input-bg">
						<u-input v-model="userInfo.sex" border="none" class="" style="padding-left: 20rpx;" readonly></u-input>
						<image src="/static/images/drop.png" class="drop" @click="sexShow = true"></image>
					</view>
					
				</u-form-item>
				<u-form-item label="所在行业" prop="name"  ref="item1" labelWidth="80">
					<u-input v-model="userInfo.name" border="none" class="input-bg" style="padding-left: 20rpx;"></u-input>
				</u-form-item>
				<u-form-item label="地区" prop="name"  ref="item1" labelWidth="80">
					<u-input v-model="userInfo.name" border="none" class="input-bg" style="padding-left: 20rpx;"></u-input>
				</u-form-item>
				<u-form-item label="拥有资源" prop="name"  ref="item1" labelWidth="80">
					<u-input v-model="userInfo.name" border="none" class="input-bg" style="padding-left: 20rpx;"></u-input>
				</u-form-item>
				<u-form-item label="产品意向" prop="name"  ref="item1" labelWidth="80">
					<u-input v-model="userInfo.name" border="none" class="input-bg" style="padding-left: 20rpx;"></u-input>
				</u-form-item>
			</u-form>
		</view>
		<view class="btn row-center" @click="goSuccess">
			立即入驻
		</view>
		<view class="btn-text row-center" @click="goRegiste">
			跳过
		</view>
		<u-action-sheet :actions="sexList" title="选择性别" :show="sexShow" cancelText="取消" @select="changeSex" :closeOnClickAction="true" :closeOnClickOverlay="true" @close="sexShow=false"></u-action-sheet>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				rules: {
					
				},
				userInfo:{
					name:'',
					sex:''
				},
				sexShow:false,
				sexList:[
					{
						name: '男',
					},
					{
						name: '女',
					}
				]
			}
		},
		methods: {
			changeSex(e){
				this.userInfo.sex=e.name
				console.log(e)
			},
			goSuccess(){
				uni.navigateTo({
					url:'/src/pages/other/success'
				})
			}
		}
	}
</script>
<style>
	page {
		background-color: #F6F7F9;
	}
</style>
<style lang="scss" scoped>
	.bg {
		padding: 31rpx;
		margin: 0 31rpx;
		background: #FFFFFF;
		border-radius: 25rpx;
	}
	.input-bg{
		padding: 15rpx 15rpx;
		width: 465rpx;
		height: 83rpx;
		background: #F6F7F9;
	}
	.drop{
		width: 33rpx;
		height: 33rpx;
	}
	.btn{
		margin-top: 108rpx;
		width: 625rpx;
		height: 83rpx;
		background: #0D59D1;
		border-radius: 10rpx ;
		font-weight: 500;
		font-size: 29rpx;
		color: #FFFFFF;
		line-height: 46rpx;
	}
	.btn-text{
		margin-top: 10rpx;
		width: 625rpx;
		height: 83rpx;
		font-weight: 500;
		font-size: 29rpx;
		color: #17161B;
		line-height: 46rpx;
	}
</style>